Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active January 27, 2026 11:30
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jolbol1
jolbol1 / middleware.ts
Created May 11, 2025 22:20
Next.js Authenticated and Validated Server Action Middleware
/* eslint-disable @typescript-eslint/no-explicit-any */
import { User } from "better-auth";
import { z } from "zod";
import { auth } from "./auth";
import { headers } from "next/headers";
/**
* Represents the state of an action, including optional error and success messages.
*/
export type ActionState = {
bl_info = {
"name": "POW! Add-on",
"author": "KURAKURAGE",
"version": (0, 5, 2),
"blender": (4, 0, 0),
"location": "View3D > Sidebar > POW!",
"description": "Outside/Inside normals + manual finish detect; plays different sound/PNG for blue(outside) and red(inside)",
"category": "3D View",
}
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active January 27, 2026 11:28 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 27, 2026 11:27
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@lopspower
lopspower / 1-README.md
Last active January 27, 2026 11:27
Android M Permissions

Android M Permissions

Twitter

1) Android Permissions

Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app. This approach streamlines the app install process, since the user does not need to grant permissions when they install or update the app. It also gives the user more control over the app's functionality; for example, a user could choose to give a camera app access to the camera but not to the device location. The user can revoke the permissions at any time, by going to the app's Settings screen.

Normal and Dangerous Permissions

Hey, all --
I wanted to let you know that I'm planning on retiring from work in the public hacking scene.
Atmosphere (and my work on the Switch) have been an enormous labor of love for me for the past eight and a half years, and it's been an honor for me to dedicate so much of my life towards this kind of work.
That said, I am getting older. I find myself with less time to dedicate towards it, more responsibilities, and a changing personal life.
Particularly with my hoping to have kids in a foreseeable time horizon, I'm thinking I have to re-evaluate how much time I can spend on hobby projects.
@sonjek
sonjek / print-jenkins-credentials.groovy
Last active January 27, 2026 11:26
Print all Jenkins credentials to the console.
import com.cloudbees.plugins.credentials.CredentialsProvider
CredentialsProvider.lookupStores(jenkins.model.Jenkins.instance).each { store ->
store.domains.each { domain ->
store.getCredentials(domain).each { cred ->
println "credentials store = '${cred.class.simpleName}'"
cred.properties.each { prop, val ->
if (['class', 'scope', 'descriptor'].contains(prop)) return
println "$prop = '$val'"
}

Installing i3wm on Ubuntu 22.04 LTS

This guide details my experience of installing i3wm on Ubuntu 22.04 LTS.

Note: My Ubuntu Desktop environment was already set up. All the apps available in the default Ubuntu window manager will also be accessible in i3wm, which is amazing because you can switch back to the default Ubuntu window manager anytime.

Install the i3wm

Open the terminal and run the following command:

@asheroto
asheroto / README.md
Last active January 27, 2026 11:21
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does